﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Q.M.Finance.Application.IServices;
using Q.M.Finance.Domain.Entity;
using Q.M.Finance.Infrastruecure.Repository;

namespace Q.M.Finance.Write.API.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class To_ticket_typeWriteController : ControllerBase
    {
        private readonly ITo_ticket_typeServices to_Ticket_TypeServices;
        public To_ticket_typeWriteController(ITo_ticket_typeServices to_Ticket_TypeServices)
        {
            this.to_Ticket_TypeServices = to_Ticket_TypeServices;
        }
        /// <summary>
        /// 显示到票类型表
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public IActionResult Getinvoice_type()
        {
            var res = to_Ticket_TypeServices.Getinvoice_type();
            return Ok(res);
        }
    }
}
